package com.uwang.library.util;

/**
 * 自定义异常
 *
 */
public class KcMadeException extends RuntimeException {
    private static final long serialVersionUID = 1L;

    private Integer errorCode;//错误编码

    private String message;

    public KcMadeException(String message){
        super(message);
        this.message=message;
    }

    public KcMadeException(Integer errorCode, String message){
        super(message);
        this.errorCode=errorCode;
        this.message=message;
    }

    public KcMadeException(String message, Throwable cause){
        super(message, cause);
        this.message=message;
    }

    public KcMadeException(Integer errorCode, String message, Throwable cause){
        super(message, cause);
        this.errorCode=errorCode;
        this.message=message;
    }

    public Integer getErrorCode() {
        return errorCode;
    }

    public void setErrorCode(Integer errorCode) {
        this.errorCode = errorCode;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
